package array;

public class ArrayExpand3 {
  public static void main(String args[]){
	  int[] a = new int[2];
      a[0] = 10;
      a[1] = 20;
      
      //int[] b = java.util.Arrays.copyOf(a,a.length*2);
  
      //a=b;
      
      print(a);
	
  }
  
  public static void print(int[] a){
	  for(int i=0;i<a.length;i++){
		  System.out.println(a[i]);
	  }
  }
  
  
}
